/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:48 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.reglement.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;

import java.util.Date;

import javax.persistence.*;

@Entity
@Table(name="reglement", catalog="dbscoremanager" )
public class Reglement implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @Column(name="idReglement", nullable=false)
    private int        idreglement  ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="idAbonnement", nullable=false)
    private int        idabonnement ;
    @Column(name="idModeReglement", nullable=false)
    private int        idmodereglement ;
    @Column(name="montantReglement")
    private Float      montantreglement ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="dateReglement")
    private Date       datereglement ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="debutDuree")
    private Date       debutduree   ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="finDuree")
    private Date       finduree     ;
    @Column(name="referenceReglement", length=254)
    private String     referencereglement ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Reglement()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdreglement( int value )
    {
        this.idreglement = value;
    }
    public int getIdreglement()
    {
        return this.idreglement;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : idAbonnement ( INT ) 
    public void setIdabonnement( int value )
    {
        this.idabonnement = value;
    }
    public int getIdabonnement()
    {
        return this.idabonnement;
    }

    //--- DATABSE MAPPING : idModeReglement ( INT ) 
    public void setIdmodereglement( int value )
    {
        this.idmodereglement = value;
    }
    public int getIdmodereglement()
    {
        return this.idmodereglement;
    }

    //--- DATABSE MAPPING : montantReglement ( FLOAT ) 
    public void setMontantreglement( Float value )
    {
        this.montantreglement = value;
    }
    public Float getMontantreglement()
    {
        return this.montantreglement;
    }

    //--- DATABSE MAPPING : dateReglement ( DATETIME ) 
    public void setDatereglement( Date value )
    {
        this.datereglement = value;
    }
    public Date getDatereglement()
    {
        return this.datereglement;
    }

    //--- DATABSE MAPPING : debutDuree ( DATETIME ) 
    public void setDebutduree( Date value )
    {
        this.debutduree = value;
    }
    public Date getDebutduree()
    {
        return this.debutduree;
    }

    //--- DATABSE MAPPING : finDuree ( DATETIME ) 
    public void setFinduree( Date value )
    {
        this.finduree = value;
    }
    public Date getFinduree()
    {
        return this.finduree;
    }

    //--- DATABSE MAPPING : referenceReglement ( VARCHAR ) 
    public void setReferencereglement( String value )
    {
        this.referencereglement = value;
    }
    public String getReferencereglement()
    {
        return this.referencereglement;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
